/* 状态： */
export const taskStatusObj = {
  TASK_STATUS_0: '草稿',
  TASK_STATUS_01: '待审核',
  TASK_STATUS_1: '已交办',
  TASK_STATUS_2: '进行中',
  TASK_STATUS_3: '已完成',
  TASK_STATUS_7: '已终止',
  TASK_STATUS_8: '待签收',
}
export const taskStatusList = [
  { name: '草稿', code: 'TASK_STATUS_0' },
  { name: '待审核', code: 'TASK_STATUS_01' },
  { name: '已交办', code: 'TASK_STATUS_1' },
  { name: '进行中', code: 'TASK_STATUS_2' },
  { name: '已完成', code: 'TASK_STATUS_3' },
  { name: '已终止', code: 'TASK_STATUS_7' },
  { name: '待签收', code: 'TASK_STATUS_8' },
]

export const feedbackReturnTips = '反馈退回后，请在pc端进行修改提交。'

/*
TASK_CREATE("TASK_CREATE", "新建", 1),
TASK_EDIT("TASK_EDIT", "编辑", 2),
TASK_DEL("TASK_DEL", "删除", 3),
TASK_ASSIGN("TASK_ASSIGN", "交办", 4),
TASK_COMMIT("TASK_COMMIT", "提交", 5),
TASK_SUPERVISE("TASK_SUPERVISE", "督办", 6),
TASK_MODIFY_STATE("TASK_MODIFY_STATE", "状态设置", 7),
TASK_FEEDBACK_Y("TASK_FEEDBACK_Y", "【反馈】通过", 8),
TASK_FEEDBACK_N("TASK_FEEDBACK_N", "【反馈】退回", 9),
TASK_OPEN_EVAL("TASK_OPEN_EVAL", "开启评价", 10),
TASK_CHANGE_COMPLETETIME("TASK_CHANGE_COMPLETETIME", "修改完成时限", 11),
TASK_SIGN("TASK_SIGN", "签收", 12),
TASK_FEEDBACK("TASK_FEEDBACK", "反馈", 13),
TASK_INSTRU("TASK_INSTRU", "批示", 14),
TASK_EVAL("TASK_EVAL", "评价", 15),
*/

/* 评价周期状态 */
export const getEvalCycleNper = data => {
  let text = '未开始'
  switch (data) {
    case '0':
      text = '未开始'
      break
    case '1':
      text = '进行中'
      break
    case '2':
      text = '已完成'
      break

    default:
      text = '未开始'
      break
  }
  return text
}
/* 评价链成员评价状态 */
export const getEvalChainUser = data => {
  let text = '未开始'
  switch (data) {
    case '0':
      text = '未开始'
      break
    case '1':
      text = '评价中'
      break
    case '2':
      text = '已评'
      break

    default:
      text = '未开始'
      break
  }
  return text
}
